//var count=0;
window.onload=function(){
	Update_DHT_Value();
}
function Update_DHT_Value(){
//	count++;
//	document.getElementById("count_time").innerHTML=count;
	var xhttp = new XMLHttpRequest();
	xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
		var Res_Test=this.responseText;
		var json_obj=eval(Res_Test);
//		document.getElementById("DHT_Value").innerHTML = Res_Test;
		document.getElementById("temperature").innerHTML ="温度："+json_obj.temper+"℃";
		document.getElementById("wetness").innerHTML ="湿度："+json_obj.wet+"%";
		}
	};
	xhttp.open("GET", "Read_DHT", true);
	xhttp.send();
	window.setTimeout(Update_DHT_Value,1000);
}